#ifndef _SHOW_DEMO_H_
#define _SHOW_DEMO_H_
#include "../lvgl/lvgl.h"
#include "../lvgl/demos/lv_demos.h"
#include "../lv_drivers/display/fbdev.h"
#include "../lv_drivers/indev/evdev.h"
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

extern bool exit_flag; // 退出标志


static lv_obj_t * slider_label;


bool show_demo();
bool exit_demo();
bool show_dir_demo();


void set_temp(void * bar, int32_t temp);
void slider_event_cb(lv_event_t * e);
void btn_event_cb(lv_event_t * e);
void bar_exit_val(void * bar, int32_t value);
void check_press(lv_event_t * e);

bool show_gif_demo(lv_obj_t * main_windows);
bool show_jpg_demo(lv_obj_t * main_windows);
bool show_btn_demo(lv_obj_t * main_windows);
bool show_bar_demo(lv_obj_t * main_windows);
bool show_slider_demo(lv_obj_t * main_windows);
bool show_switch_demo(lv_obj_t * main_windows);
bool show_downList_demo(lv_obj_t * main_windows);
bool show_checkbox_demo(lv_obj_t * main_windows);
bool show_line_demo(lv_obj_t * main_windows);
bool show_arc_demo(lv_obj_t * main_windows);
bool show_textarea_demo(lv_obj_t * main_windows);
bool show_label_demo(lv_obj_t * main_windows);
bool show_label_demo2(lv_obj_t * main_windows);
bool show_roller_demo(lv_obj_t * main_windows);
bool show_list_demo(lv_obj_t * main_windows);
bool show_bar_exit(lv_obj_t * parent);
#endif